from py2neo import Graph, Node, Relationship

graph = Graph("bolt://localhost:7687", auth=("neo4j", "12345678"))

person = Node("Person", name="张三", age=18)
movie = Node("Movie", name="黑客帝国", year=1999)
acted_in = Relationship(person, "ACTED_IN", movie, roles=["Neo"])
graph.create(person)
graph.create(movie)
graph.create(acted_in)
# print(acted_in)
